home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 2005 Utilities
/
CHIP Utilities 2005.7z
/
CHIP Utilities 2005.iso
/
images
/
arachne.igz
/
arachne.img
/
LEVEL3
/
NWLAN.CAB
/
Bin
/
M.BAT
< prev
next >
Wrap
DOS Batch File
|
2005-01-16
|
2KB
|
53 lines
@if "%debug%"=="" echo off
%ramdrv%\bin\fpath.com map.exe >nul
if errorlevel 1 goto _end
for %%i in (%tmp%\_m.*) do if exist %%i del %%i >nul
if "%1"=="" goto _map0
if "%2"=="" goto _map1
goto _map2
:_map0
echo "" >%tmp%\_m.tmp
goto _done
:_map1
echo "%1" >%tmp%\_m.tmp
goto _done
:_map2
echo %1 %2 %3 %4 %5 %6 %7 %8 >%tmp%\_m.bak
%ramdrv%\bin\lmod /S"" [$1][+][$2][+][$3][+][$4][+][$5][+][$6][+][$7][+][$8]<%tmp%\_m.bak >%tmp%\_m.tmp
%ramdrv%\bin\lmod /L* []<%tmp%\_m.tmp >%tmp%\_m.bak
:_loop
%ramdrv%\bin\lmod [][+][]*<%tmp%\_m.bak >%tmp%\_m.tmp
%ramdrv%\bin\linex 2- <%tmp%\_m.bak >%tmp%\_m.txt
if errorlevel 1 goto _done
type %tmp%\_m.txt >%tmp%\_m.bak
%ramdrv%\bin\lmod /L2 /B: if not "*"=="[$2]" %ramdrv%\bin\el! 1 <%tmp%\_m.tmp >%tmp%\_m.bat
call %tmp%\_m.bat
if errorlevel 1 goto _copy0
%ramdrv%\bin\lmod []=[-]<%tmp%\_m.tmp >>%tmp%\_m.lst
goto _loop
:_copy0
%ramdrv%\bin\lmod [] [-]<%tmp%\_m.tmp >>%tmp%\_m.lst
goto _loop
:_done
type %tmp%\_m.tmp >>%tmp%\_m.lst
echo echo. >%tmp%\_m.bat
%ramdrv%\bin\lmod echo M.BAT: MAP.EXE []<%tmp%\_m.lst >>%tmp%\_m.bat
%ramdrv%\bin\lmod map.exe []<%tmp%\_m.lst >>%tmp%\_m.bat
cd | %ramdrv%\bin\lmod /S\ [$1] >>%tmp%\_m.bat
call %tmp%\_m.bat
if exist %ramdrv%\bin\repath.bat call %ramdrv%\bin\repath.bat
if not "%1"=="" goto _end
echo.
echo M.BAT is a wrapper for MAP.EXE
echo It will perform the mapping and restores the PATH afterwards
echo (MAP.EXE by itself destroys your local PATH)
echo.
echo Syntax: M.BAT [root] [ins] S16:=server\volume:path
echo M.BAT [root] Z:=server\volume:path
echo.
echo ("server" can be IP-ADDRESS when using NLM with IP)
echo.
:_end
for %%i in (%tmp%\_m.*) do if exist %%i del %%i >nul